package day02;

import java.util.Scanner;

public class MainTest9 {
    public static void main(String[] args) {
        System.out.println("请输入你的兑奖号码：");
        Scanner input = new Scanner(System.in);
        int num = input.nextInt();
        int bai = num%1000/100;
        int randomNum = (int)(Math.random()*10);
        if (bai ==randomNum){
            System.out.println("恭喜你中奖");
        }else {
        System.out.println("很遗憾");}
    }
}
